package com.kuangstudy.io.demo;

import java.io.FileInputStream;
import java.io.IOException;

/**
 * ClassName: Demo11
 * date: 2021/07/16 13:52:07
 *InputStream:字节输入流
 * @author zlk
 */
public class Demo11 {
    public static void main(String[] args) throws Exception {
        FileInputStream fis = new FileInputStream("e:\\3.txt");
        int read;
        while ((read = fis.read()) != -1){
            System.out.println((char) read);
        }
        fis.close();
    }
}
